home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cxl41.arc / CXLPRN.H < prev    next >
Text File  |  1989-03-05  |  3KB  |  70 lines

  1.  
  2. /*
  3.    ┌──────────────────────────────────────────────────────────────────────────┐
  4.    │                                                                          │
  5.    │  CXLPRN.H - CXL (c) 1987, 1988 by Mike Smedley.                          │
  6.    │                                                                          │
  7.    │  This header file contains function prototypes and definitions for       │
  8.    │  printer functions.                                                      │
  9.    │                                                                          │
  10.    └──────────────────────────────────────────────────────────────────────────┘
  11. */
  12.  
  13.  
  14. #if defined(__TURBOC__)                             /*  Turbo C  */
  15.     #if __STDC__
  16.         #define _Cdecl
  17.     #else
  18.         #define _Cdecl  cdecl
  19.     #endif
  20.     #define _Near
  21. #elif defined(__ZTC__)                              /*  Zortech C++  */
  22.     #define _Cdecl
  23.     #define _Near
  24. #elif defined(M_I86) && !defined(__ZTC__)           /*  Microsoft C/QuickC  */
  25.     #if !defined(NO_EXT_KEYS)
  26.         #define _Cdecl  cdecl
  27.         #define _Near   near
  28.     #else
  29.         #define _Cdecl
  30.         #define _Near
  31.     #endif
  32. #elif defined(__POWERC__)                           /*  Power C  */
  33.     #define _Cdecl
  34.     #define _Near
  35. #endif
  36.  
  37.  
  38. /*---------------------------[ Function Prototypes ]-------------------------*/
  39.  
  40. void     _Cdecl lprintc(int ch);
  41. void     _Cdecl lprintf(const char *format,...);
  42. void     _Cdecl lprintns(char *str,int count);
  43. void     _Cdecl lprints(char *str);
  44. void     _Cdecl lprintsb(char *str,int reps);
  45. void     _Cdecl lprintsu(char *str);
  46. void     _Cdecl scrndump(void);
  47.  
  48.  
  49. /*-----------[ printer escape codes for Epson compatible printers ]----------*/
  50.  
  51.     /*  Example:  lprints(L_BFON"This is bold printing"L_BFOFF);    */
  52.  
  53. #define L_BFOFF     "\033F"             /*  turns bold faced printing off   */
  54. #define L_BFON      "\033E"             /*  turns bold faced printing on    */
  55. #define L_DWOFF     "\033W0"            /*  turns double wide printing off  */
  56. #define L_DWON      "\033W1"            /*  turns double wide printing on   */
  57. #define L_ELITE     "\033M"             /*  sets printer in 12 CPI mode     */
  58. #define L_INIT      "\033@"             /*  initializes printer             */
  59. #define L_ITALOFF   "\0335"             /*  turns italicized printing off   */
  60. #define L_ITALON    "\0334"             /*  turns italicized printing on    */
  61. #define L_PICA      "\033P"             /*  sets printer in 10 CPI mode     */
  62. #define L_ULOFF     "\033-0"            /*  turns underlined printing off   */
  63. #define L_ULON      "\033-1"            /*  turns underlined printing on    */
  64.  
  65.  
  66. /*-----------------------[ Macro-Function Definitions ]----------------------*/
  67.  
  68. #define lcrlf()             lprintc(10)
  69.  
  70.